package cn.blog.controller.front;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.blog.controller.BaseServlet;
import cn.blog.entity.origin.Commet;
import cn.blog.service.front.ComService;

@WebServlet("/front/del-com")
public class DelCom extends BaseServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		
		int id = Integer.parseInt(req.getParameter("id").trim());
		ComService cs = new ComService();
		int result = cs.delCom(id);
		PrintWriter out = resp.getWriter();
		out.print(result);
	}
	
}
